/*
 * ============================================================================
 *
 *       Filename:  main.c
 *
 *    Description:  
 *
 *        Version:  1.0
 *        Created:  2014年09月28日 14时40分58秒
 *       Revision:  none
 *       Compiler:  gcc
 *
 *         Author:  jianxi sun (jianxi), ycsunjane@gmail.com
 *   Organization:  
 *
 * ============================================================================
 */
#include <stdio.h>
#include <stdint.h>

#include "avl.h"

int main()
{
	int key_arr[] = {3,55,7,4,6,34,23,63,75,99,24,12,11,31};
	//int key_arr[] = {3,55,7,4,6};

	struct node_t *head = NULL;
	int i;
	for(i = 0; i < sizeof(key_arr)/sizeof(int); i++) {
//		printf("i: %d, key: %d\n", i, key_arr[i]);
		insert_node(&head, NULL, key_arr[i], NULL);
		travel_node(head);
		printf("=================================\n");
	}

	return 0;
}
